#include <stdio.h>
#include "stack.h"
int main(int argc, const char * argv[])
{
    stack_t *stk = stackcreat();//创建顺序栈
    stackpush( stk, 10);//进栈
    stackpush( stk, 20);
    stackpush( stk, 30);
    stackpush( stk, 40);
    stackpush( stk, 50);
    stackshow(stk);//遍历
    int temp;
    temp = stackpop(stk);//出栈
    printf("出栈的数为:%d\n",temp);
    temp = stackpop(stk);
    printf("出栈的数为:%d\n",temp);
    temp = stackpop(stk);
    printf("出栈的数为:%d\n",temp);
    temp =  stackpop(stk);
    printf("出栈的数为:%d\n",temp);
    stackshow(stk);//遍历
    return 0;
}